<div class="content">
<?php // app/views/posts/search.ctp ?> 
<h1>Results</h1> 
<table> 
    <tr> 
        <th>Id</th> 
        <th>Name</th> 
        <th>Description</th> 
    </tr> 

<!-- Here's where we loop through our $results array, printing out post info --> 

<?php foreach ($results as $item): ?> 
    <tr> 
        <td><?php echo $item['Item']['id']; ?></td> 
        <td> 
            <?php echo $html->link($item['Item']['name'],'/items/view/'.$item['Item']['id']);?> 
        </td> 
        <td><?php echo $item['Item']['description']; ?></td> 
    </tr> 
<?php endforeach; ?> 
</table> 
</div>